﻿using System;
using Xoohoo.Infrastructure;
using Xoohoo.Models;
using System.Collections.Generic;

namespace Xoohoo.Repositories
{
    public interface IRepository<T> where T : class
    {
        T GetItem(Guid id);
        T Save(T item);
        bool Remove(Guid id);
        //IEnumerable<T> GetList(ISearchCriteria<T> searchCriteria, IDisplayOrder<T> displayOrder, PagingInfo pagingInfo);
    }
    public interface IRepository
    {
        object GetItem(Guid id);
        object Save(object item);
        bool Remove(Guid id);
    }
}
